package text_2023_09_21;

import java.util.Calendar;

/**
 * @author Vv
 * @version 1.0
 *  coding_learn
 * @description
 * @date 2023/9/21 09:12:07
 */
public class JavaAPITest {
    public static void main(String[] args) {
        //int 和 Integer 之间的转换
        //
//        Calendar c4 = Calendar.getInstance();
//        c4.set(2009,10-1,10);
//        Calendar c5 = Calendar.getInstance();
//        c5.set(2010,10-1,10);
//        boolean b = c5.after(c4);
//        System.out.println(b);
//        Calendar c = Calendar.getInstance();
//        System.out.println(c.get(Calendar.YEAR) + "年" +
//                (c.get(Calendar.MONTH) + 1) + "月" +
//                (c.get(Calendar.DAY_OF_MONTH)) + "日");
//        c.set(2011,10,11);
//        System.out.println(c.get(Calendar.YEAR) + "年" + (c.get(Calendar.MONTH) + 1) + "年" + c.get(Calendar.DAY_OF_MONTH) + "日");
//        Calendar c1 = Calendar.getInstance();
//        Calendar c3 = Calendar.getInstance();
//        c3.add(Calendar.DATE,100);
//        int year1 = c3.get(Calendar.YEAR);
//        int month1 = c3.get(Calendar.MONTH);
//        int date1 = c3.get(Calendar.DATE);
//        System.out.println(year1 + "年" + month1 + "月" + date1 + "日");
        Calendar c = Calendar.getInstance();
        c.set(Calendar.DATE,1);
        int start = c.get(Calendar.DAY_OF_WEEK);
        int maxDay = c.getActualMaximum(Calendar.DATE);
        System.out.println("星期日星期一星期二星期三星期四星期五星期六");
        for(int i = 1;i<start;i++){
            System.out.print("   ");
        }


    }
}
